using System;
using System.Collections.Generic;
using System.Data.Services.Common;
using COM.Domain;
using System.Data.Entity.ModelConfiguration;
using System.ComponentModel.DataAnnotations;

namespace SampleApp.Domain
{
    public class SysRoleMenuMap : EntityTypeConfiguration<SysRoleMenu>
    {
        public SysRoleMenuMap()
        {
            this.ToTable("exp_t_application_rolemenu");
            this.HasKey(t => t.RoleMenuID);
            this.Property(t => t.RoleMenuID).HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);
            this.Property(t => t.RoleMenuID).HasColumnName("rolemenuid");
            this.Property(t => t.MenuID).HasColumnName("menuid");
            this.Property(t => t.RoleID).HasColumnName("roleid");

        }
    }

}

